import Layout from '@/layout/index'

const router = [
  {
    path: '/spu',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'form',
        name: 'SpuInsert',
        component: () => import('@/views/goods/spu/SpuForm'),
        meta: { title: '商品-新增' },
        noCache: true,
        hidden: true
      },
     
      {
        path: 'handleAddFromCloudBySku/:id',
        name: 'HandleAddFromCloudBySku',
        component: () => import('@/views/goods/spu/HandleAddFromCloudBySku'),
        meta: { title: '商品-共享库存调拨' },
        noCache: true,
        hidden: true
      },
      {
        path: 'handleAddFromCloud',
        name: 'HandleAddFromCloud',
        component: () => import('@/views/goods/spu/HandleAddFromCloud'),
        meta: { title: '商品-新增' },
        noCache: true,
        hidden: true
      },
      
      {
        path: 'view',
        name: 'SpuPriceView',
        component: () => import('@/views/goods/spu/SpuPriceView'),
        meta: { title: '商品-价格查看' },
        noCache: true,
        hidden: true
      },
      {
        path: 'skuView/:id',
        name: 'SkuView',
        component: () => import('@/views/goods/spu/SkuView'),
        meta: { title: '商品-价格查看' },
        noCache: true,
        hidden: true
      },
      {
        path: 'form/:id(\\d+)',
        name: 'SpuUpdate',
        component: () => import('@/views/goods/spu/SpuForm'),
        meta: { title: '商品-编辑' },
        noCache: true,
        hidden: true
      }
    ]
  }
]

export default router
